<link  href="/stylesheets/tests.css" type="text/css" rel="stylesheet" media="screen">
<title>添加量表分类</title>
  <script src="/validation/validation_cn.js" type="text/javascript"></script>
<p  class="smallNav">专业量表管理>>添加纬度>>纬度解释</p>

<div style="margin: 25px 0 10px 0">
<% form_for(:explanation, :url => { :action => "create_expl" }, :html=>{:class=>"required-validate" ,:id=>"expl_form"}) do |f| %>
  <%= tag(:input, :type => "hidden", :name => request_forgery_protection_token.to_s, 
                 :value => form_authenticity_token) %> 
    <b>下线:</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                       <%= f.text_field :start_num ,:class=>"validate-number"%><br/>
    <b>上线:</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                       <%= f.text_field :end_num  ,:class=>"validate-number"%><br/>
    <input type="hidden" name="explanation[dimen_id]" value="<%=params[:id]%>"/>
    <b>分类说明:</b><br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <%= f.text_area :description, :style=>"width:300px;height:160px;visibility;" %><br/>
    <input type="button" name=""  style="margin-left:50px;"value="添加" onclick="add_type();">
  <% end %>
    <br />

</div>
<script>
function add_type(){
    var form1=document.getElementById("expl_form");
    form1.submit();
}
</script>
